package com.vms.gsmchecker;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

public class SplashActivity extends Activity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash);

		final int diplayTime = 2000;
		Thread welcomeThread = new Thread() {
			int wait = 0;
			@Override
			public void run() {
				try {
					super.run();
					while (wait < diplayTime) {
						sleep(100);
						wait += 100;
					}
				} catch (Exception e) {
					e.printStackTrace();
				} finally {
					startActivity(new Intent(SplashActivity.this, GSMCheckerActivity.class));
					finish();
				}
			}
		};
		welcomeThread.start();
	}
}
